package edu.ynu.se.xiecheng.achitectureclass.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "api")
@EnableConfigurationProperties
public class ApiConfig {

    private final FboxConfig fbox = new FboxConfig();
    private final CameraConfig camera = new CameraConfig();

    @Data
    public static class FboxConfig {
        private String clientId;
        private String clientSecret;
        private String scope = "fbox";
    }

    @Data
    public static class CameraConfig {
        private String baseUrl = "http://49.193.14.241:7000";
        private String accountId = "1ca7f0ab24ba41b291346347ec30140e";
    }
} 